<?php
/**
 * Created by PhpStorm.
 *
 * @author 清凉Tea <973110519@qq.com>
 *         Date: 2018/4/10
 *         Time: 16:40
 */

namespace app\api\controller;

use think\Controller;
use app\api\model\CardGroup as CardGroupModel;
use app\api\model\WechatCard;
class CardGroup extends Base{

	//获取主题
	public function getGroup($id){
		$data = CardGroupModel::getById($id);
		$cardList = (new WechatCard())->groupList($data['data']['card_ids']);
		$data['data']['cardList'] = $cardList;
		return self::apiResp($data);
	}
}